package cn.blunce.persondbtest.app;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import cn.blunce.app.base.PersonDB;
import cn.blunce.app.models.Person;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		PersonDB db = PersonDB.getInstance(this);
		Person person1 = new Person("xiaoming", "12");
		db.addPerson(person1);
		List<Person> list = db.findPersonByName("xiaoming");
		System.out.println(list.get(0).toString());
	}
}
